﻿using System;

namespace ClubInfrostructure
{
    class Championship
    {
            public int  _championshipID;
            public string _championshipName;
            public int  _clubsAmount;
            public DateTime _foundation;
            public string _country;
            public static int _championshipsAmount;

            public Championship()
            {
                this._championshipID   = 0;
                this._championshipName  = null;
                this._clubsAmount = 0;
                this._foundation   = Convert.ToDateTime("01/01/0001");
                this._country  = null;
            }
            public  void CreateChampionship( string name,int clubsAmount, string foundationDate,string country)
            {
                this._championshipID = _championshipsAmount ++ ;
                this._championshipName = name ;
                this._clubsAmount = clubsAmount ;
                this._foundation = Convert.ToDateTime(foundationDate );
                this._country = country;
            }

            public void ChangeName(int champID, string name)
            {
                this._championshipID = champID;
                this._championshipName = name;
            }

            public void ChangeClubAmount(int champID, int clubs)
            {
                this._championshipID = champID;
                this._clubsAmount = clubs;
            }
    }
}
